Fix gdb v3 error.
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 20 Feb 2007 20:51:15 +0000 (20:51 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 20 Feb 2007 20:51:15 +0000 (20:51 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2676 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/gdb.c

index 93a8db22e1186277c6ebea330fafc643715d9372..27cdd52472799c8e778b9e0685b4297fbf24fc1c 100644 (file)
@@ -90,8 +90,8 @@
 
 /* %%% local vars %%% */
 
-/* static char gdb_release[] = "$Revision: 1.47 $"; */
-static char gdb_release_date[] = "$Date: 2007-02-14 14:25:36 $";
+/* static char gdb_release[] = "$Revision: 1.48 $"; */
+static char gdb_release_date[] = "$Date: 2007-02-20 20:51:15 $";
 
 static FILE *fin, *fout;
 static char *fin_name, *fout_name;
@@ -700,6 +700,8 @@ gdb_read_route(void)
 #ifdef GDB_DEBUG
                gdb_print_buff(buff, 8, "Unknown bytes within rte_reed_loop");
 #endif
+               if (gdb_ver >= 3)
+                   gdb_fread(buff, 8);                                         /* a second block of unknown bytes */
            }
 
            /* The next thing is the unknown 0x03 0x00 .. 0x00 (18 bytes) */